#pragma once
#include "util/bplustree.hpp"
#include "util/noncopyable.h"

namespace net_tools::base
{
  class Timeevent;
  class Timebplustree : util::noncopyable
  {
  public:
    Timebplustree();
    ~Timebplustree() = default;
    void Insert_timeevent(Timeevent *p_timeevent);
    void Dotimeevent();
    timeval Get_min_time();
    bool Is_empty();

  private:
    util::Bplustree<Timeevent *, timeval> bplustree_;
  };

} // namespace net_tools::base